package com.ymatou.auth.service;

import org.json.JSONException;
import org.json.JSONObject;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*锁定用户接口Call
*FreeMaker Template自动生成代码
*/
public class LockUserRequestDtoCall extends YmatouBaseCall{
	private static String opurl ="json/reply/LockUserRequestDto";
	
	public LockUserRequestDtoCall() {
		super(EnvSetup.getSystemUrl("api_auth"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}

	public String getMsg(){
		String msg=null;	
		try {
			msg=new JSONObject(getReturnData()).getString("LastErrorMessage");
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return msg;
	}

}

